package com.party.mapper;

import com.party.model.SysModel;
import com.party.model.SysNav;
import com.party.model.SysNavExample;

import java.util.List;

import com.party.model.SysNode;
import com.party.parBean.Par_sysUser;
import org.apache.ibatis.annotations.Param;

public interface SysNavMapper {
    int countByExample(SysNavExample example);

    int deleteByExample(SysNavExample example);

    int deleteByPrimaryKey(Integer navid);

    int insert(SysNav record);

    int insertSelective(SysNav record);

    List<SysNav> selectByExample(SysNavExample example);

    SysNav selectByPrimaryKey(Integer navid);

    int updateByExampleSelective(@Param("record") SysNav record, @Param("example") SysNavExample example);

    int updateByExample(@Param("record") SysNav record, @Param("example") SysNavExample example);

    int updateByPrimaryKeySelective(SysNav record);

    int updateByPrimaryKey(SysNav record);

    //根据账号查菜单
    List<SysNav> getNavsByPassport(String passport);

    List<SysModel> getModelsByPassport(Par_sysUser par_sysUser);

    List<SysNode> getNodesByPassport(Par_sysUser par_sysUser);

    List<SysNav> getListPage(SysNavExample example);
}